﻿@if (!String.IsNullOrEmpty(ViewBag.StateMessage))
{
    string msg = ViewBag.StateMessage;
    int idx = msg.IndexOf(':');
    string status = "warning";
    if (idx > 0)
    {
        status = ViewBag.StateMessage.Substring(0, idx);
        msg = msg.Substring(idx + 1);
    }
    switch (status)
    {
        case "success": Von.Web.Framework.Runtime.Log.Debug(msg); break;
        case "info": Von.Web.Framework.Runtime.Log.Info(msg); break;
        case "warning": Von.Web.Framework.Runtime.Log.Warn(msg); break;
        case "danger": Von.Web.Framework.Runtime.Log.Fatal(msg); break;
    }
    <div id="StatusMessage" class="alert alert-@status alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        @msg
    </div>
}
<div id="alert_message" title="系统警告信息" data-container="body" data-toggle="popover" data-placement="bottom" data-content="系统提示内容"></div>
